import { createApp } from 'vue';
import 'uno.css';
import '@/style/global/index.less'
import { setupRouter } from '@/router';
import { setupStore } from '@/store';
import setupDirective from '@/directives';
import setupSvg from "@/icons";
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
import App from '@/App.vue';
import { registerAntdComp } from '@/components/registeAntdComp';

function setupApp() {
  dayjs.locale('zh-cn');

  const app = createApp(App);
  setupStore(app);
  setupRouter(app);
  setupDirective(app);
  setupSvg(app);
  registerAntdComp(app);
  app.mount('#app');
}
setupApp();

